<%--查询所有用户的界面--%>
<%@ page import="pojo.User" %>
<%@ page import="dao.ImplementUser" %>
<%@ page import="java.util.ArrayList" %>
<%@ page contentType="text/html;charset=UTF-8" language="java" %>
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>
<html>
<head>
    <title>Title</title>
</head>
<style>
    .users{
        margin: auto;
        margin-left: 200px;
    }
</style>
<body>
<h3 align="center">用户</h3>
<table class="users" border="1" width="500" align="center">
    <tr>
        <%--表头行--%>
        <th>编号</th>
        <th>姓名</th>
        <th>年龄</th>
        <th>性别</th>
        <th>电话</th>
    </tr>
    <%
        ArrayList<User> listusers=new ArrayList<User>();
        ImplementUser implementUser=new ImplementUser();
        listusers=implementUser.getUsers();
        request.setAttribute("listusers",listusers);
    %>
    <c:forEach items="${listusers}" var="userinfo" varStatus="s">
        <tr>
            <td>${s.count}</td>
            <a href="#"><td>${userinfo.usename}</td></a>
            <td>${userinfo.age}</td>
            <td>${userinfo.gender}</td>
            <td>${userinfo.telephone}</td>
        </tr>
    </c:forEach>
</table>
</body>
</html>
